import request from '@/utils/request'

/**
 * 领导带班数据项说明分页查询
 * @param {查询条件} data
 */
export function listduty(query) {
  return request({
    url: 'business/duty/list',
    method: 'get',
    params: query,
  })
}

/**
 * 新增领导带班数据项说明
 * @param data
 */
export function addduty(data) {
  return request({
    url: 'business/duty',
    method: 'post',
    data: data,
  })
}
/**
 * 修改领导带班数据项说明
 * @param data
 */
export function updateduty(data) {
  return request({
    url: 'business/duty',
    method: 'PUT',
    data: data,
  })
}
/**
 * 获取领导带班数据项说明详情
 * @param {Id}
 */
export function getduty(id) {
  return request({
    url: 'business/duty/' + id,
    method: 'get'
  })
}

/**
 * 删除领导带班数据项说明
 * @param {主键} pid
 */
export function delduty(pid) {
  return request({
    url: 'business/duty/delete/' + pid,
    method: 'delete'
  })
}
// 获取编号 getCode
export function getCode() {
  return request({
    url: 'business/duty/getCode',
    method: 'get'
  })
}
//获取人员 getMan
export function getMan() {
  return request({
    url: 'business/duty/getMan',
    method: 'get'
  })
}
